package com.company.factory;

import com.company.abstruct.AbstractFactory;
import com.company.abstruct.Phone;
import com.company.abstruct.Tablet;
import com.company.produce.phone.XiaomiPhone;
import com.company.produce.tablet.XiaomiTablet;

public class XiaomiFactory extends AbstractFactory {
    @Override
    public Phone producePhone() {
        System.out.println("小米手机工厂生产小米手机");
        return new XiaomiPhone();
    }

    @Override
    public Tablet produceTablet() {
        System.out.println("小米平板工厂生产小米平板");
        return new XiaomiTablet();
    }
}
